package auctioncentral;

import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertTrue;

  /**
   * 
   * @author Kris
   * @version 2/26/2014
   */
public class ItemTest {
    /**
     * the Item object to use for testing.
	 */
  private Item my_item;
	
	/**
	 * the first Bid object to use for testing.
	 */
  private Bid my_bid1;
	
	/**
	 * the second Bid object to use for testing.
	 */
  private Bid my_bid2;
	
	/**
	 * the third Bid object to use for testing.
	 */
  private Bid my_bid3;

	/**
	 * Initializes up all of the fields.
	 */
  @Before
  public void setup() {
    my_item = new Item("ball", 3, "herp", 123, 10, "donor", "size:large", "stored in box", "condition:good", "comments"); 
  }
	
	/**
	 * tests to see if the date setter correctly changes the date.
	 */
  @Test
  public void testItem() {
	  assertTrue(my_item.toString().equals("ball 123 3 herp 10 donor size:large stored in box condition:good comments"));
  }
}
